<?php

class BoardController
{
    private $boardModel;

    function __construct()
    {
        $this->boardModel   =   new BoardModel();
    }

    public function postBoard($info)/*{{{*/
    {
        $info['foundUid']   =   AC::$hostUserBaseInfo['uid'];
        $info['founder']    =   AC::$hostUserBaseInfo['nickname'];

        $result =   $this->boardModel->postBoard($info);
        return  $result;
    }/*}}}*/

    public function updateBoard($info)/*{{{*/
    {
        $info['modifyUid']  =   AC::$hostUserBaseInfo['uid'];
        $info['modifier']   =   AC::$hostUserBaseInfo['nickname'];

        $result =   $this->boardModel->updateBoard($info);
        return  $result;
    }/*}}}*/

    public function removeBoard($info)/*{{{*/
    {
        $info['modifyUid']  =   AC::$hostUserBaseInfo['uid'];
        $info['modifier']   =   AC::$hostUserBaseInfo['nickname'];

        $result =   $this->boardModel->removeBoard($info);
        return  $result;
    }/*}}}*/

    public function getBoardList($info)/*{{{*/
    {
        $result =   $this->boardModel->getBoardList($info);
        return  $result;
    }/*}}}*/

}


